import httpInstance from "@/utils/http";


export function getBanner(param = {}){
    //默认是1 商品是2
    const {displaySettings = '1'}  =param
    return httpInstance({
        url: '/home/banner',
        params:{
            displaySettings
        }
    })
}


export function getNew(){
    return httpInstance({
        url: '/home/new'
    })
}


export function getHot(){
    return httpInstance({
        url: '/home/hot'
    })
}


/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => {
    return httpInstance({
      url: '/home/goods'
    })
  }